export default function (state = 100, action) {
  switch (action.type) {
    case 'ADD':
      return state + action.payload
    case 'MINUS':
      return state - action.payload
    case 'RIDE':
      return state * action.payload
    default:
      return state
  }
}
